package com.xherorlclass.enumeration;

/**
 * @author ：Xherorl
 * @date ：Created in 2023/8/27 20:09
 * @description： 用来标记请求类型
 */
public enum RequestType {

    REQUEST((byte)1,"普通请求"), HEART_BEAT((byte)2,"心跳检测请求");

    private byte id;
    private String type;

    RequestType(byte id, String type) {
        this.id = id;
        this.type = type;
    }

    public byte getId() {
        return id;
    }

    public String getType() {
        return type;
    }
}
